package com.heima.datasync;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@MapperScan("com.heima.datasync.mapper")
public class DataSyncApplication {
    public static void main(String[] args) {
        SpringApplication.run(DataSyncApplication.class, args);
    }

    //工具类的服务已经连接数据库了   不需要  远程调用   
    @Bean//分页拦截器
    PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
}
